import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:get/get.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:thingskit/Pages/DeviceSetting/deviceSettingPage.dart';
import 'package:thingskit/Pages/Home/homePage.dart';
import 'package:thingskit/Pages/ModeManagement/modeManagementPage.dart';
import 'package:thingskit/utils/UsbController.dart';
import 'package:thingskit/utils/ToastController.dart';
import 'Pages/DeviceGroup/deviceGroupPage.dart';
import 'Pages/FastSetting/fastSettingPage.dart';
import 'Pages/My/MyPage.dart';
import 'Pages/login/loginPage.dart';


void main() {
/*  SharedPreferences.setMockInitialValues({});*/
  Get.put(UsbController());
  Get.put(ToastController());
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      builder: EasyLoading.init(),
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primaryColor: Colors.white,
        appBarTheme: AppBarTheme(
          centerTitle: true,
          color: Colors.white,
          elevation: 0,
          iconTheme: IconThemeData(color: Colors.black),
          titleTextStyle: TextStyle(
            color: Colors.black,
            fontSize: 20,
            fontWeight: FontWeight.bold,
          ),
        ),
      ),
      home: LoginPage(),
    );
  }
}
